# Maintainer: Cowington Post <cowingtonpost@gmail.com>
pkgname=xdg-ninja
pkgver=0.2.0.1
pkgrel=0
pkgdesc="Shell script which checks your home directory for unwanted files and directories"
url="https://github.com/b3nj5m1n/xdg-ninja"
arch="noarch"
license="MIT"
depends="jq"
source="https://github.com/b3nj5m1n/xdg-ninja/archive/v$pkgver/xdg-ninja-$pkgver.tar.gz"
options="!check" # no upstream tests

package() {
	local bin="$pkgdir/usr/bin"
	local lib="$pkgdir/usr/lib/$pkgname"
	install -Dm755 -t "$lib" "$pkgname.sh"
	install -dm755 "$bin"
	ln -s "${lib#"$pkgdir"}/$pkgname.sh" "$bin/$pkgname"
	cp -rpt "$lib" "programs"
}

sha512sums="
1ac0ccf718a698fd7ce3c651359149ad3d4b6d9f3547018a99762452db2b518df4bb0954e26b0691b0b9f2d6b67928c0ccb807949895580b21f7125fa99b8b94  xdg-ninja-0.2.0.1.tar.gz
"
